Re: [SQL] Setting Next Value in Sequence

Поиск
Список
Период
Сортировка
От Herouth Maoz
Тема Re: [SQL] Setting Next Value in Sequence
Дата
Msg-id l03110708b31406f2ab41@[147.233.159.109]
обсуждение исходный текст
Ответ на Setting Next Value in Sequence  ("Tim Perdue" <perdue@raccoon.com>)
Список pgsql-sql
At 14:37 +0200 on 16/3/99, Tim Perdue wrote:


> Maybe it's due to sleep deprivation, but this is not working. I'm trying to
> update a seqence to a higher number, and it won't let me.
>
> db_domain=> update seq_mailid set last_value=1375000;
> ERROR:  You can't change sequence relation seq_mailid
>
> My sense of humor has totally faded over the last two days, and I would
> appreciate sone input.

Do you (or the user who is trying to do this) own the sequence? Do you have
the right access rights to it?

In any case, I always thought the best is to drop the sequence and create
it with a proper start number.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



В списке pgsql-sql по дате отправления:

Предыдущее
От: Remigiusz Sokolowski
Дата:
Сообщение: Re: [SQL] Setting Next Value in Sequence
Следующее
От: "Tim Perdue"
Дата:
Сообщение: Re: [SQL] Setting Next Value in Sequence